package cn.gailvlun.gll.presentation.wish.drawer;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import cn.gailvlun.gll.Constants;



public class WishListPagerAdapter extends FragmentStatePagerAdapter {
    public WishListPagerAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        switch (position) {
            case 0: {
                return WishListFragment.getInstance(Constants.OWNER);
            }
            case 1: {
                return WishListFragment.getInstance(Constants.ACCEPTER);
            }
        }
        return null;
    }

    @Override
    public int getCount() {
        return 2;
    }
}
